package com.whoimi.admin.service.impl;

import com.whoimi.admin.entity.Notice;
import com.whoimi.admin.repository.NoticeRepository;
import com.whoimi.admin.service.NoticeService;
import jakarta.annotation.Resource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * @author whoimi
 * @since 2025-07-30
 **/
@Service
public class NoticeServiceImpl implements NoticeService {
    @Resource
    private NoticeRepository noticeRepository;


    @Override
    public Page<Notice> page(Pageable pageable){
        return noticeRepository.findAll(pageable);
    }
}
